import { instance } from '@/utils/request';

const loginByAccount = (data: LoginByAccountDto): Promise<ResponseApiDto> => {
  return instance.post('/Login/BusinessLoginByAccount', data);
};

const checkLogin = (): Promise<ResponseApiDto> => {
  return instance.get('/Login/CheckBusinessLogin');
};

export default { loginByAccount, checkLogin };
